import d2Mock from './d2-mock'

console.log('%c <<<<<<<<<<<<<<<<<<<使用原装的d2mock安装插件>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>', 'color:#08e');
const req = context => context.keys().map(context)
const options = req(require.context('./data/', true, /\.js$/))
	.filter(e => e.default)
	.map(e => e.default)

// setup mock datas
options.forEach(option => {
	d2Mock.load(option)
})
